#pragma once
#include "vector3f.h"
class Line
{
public:
	Line(void);
	Line(Vector3f& startPoint, Vector3f& endPoint);
	Line(Vector3f& startPoint, Vector3f& direction, void* dummy);
	virtual ~Line(void);

    Vector3f& GetPos()
    {
        return m_vPoint;
    }

	/// @return
	///		normalized direction vector.
    Vector3f& GetDirection()
    {
        return m_vDirecition;
    }

    float GetLength()
    {
        return m_fLength;
    }

protected:
    Vector3f m_vPoint;          // a point in the line
    Vector3f m_vDirecition;     // the direction of the line
    float    m_fLength;         // segment of line
};

